﻿using Autodesk.AutoCAD.Runtime;
using Autodesk.Windows;
using HaierCADplug_in.View;
using HaierCADplug_in.ViewModel;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Imaging;

namespace HaierCADplug_in
{

    public class MainClass
    {
        [CommandMethod("Test")]
        public void Main()
        {
            RibbonTable();
            //MessageBox.Show("配置文件路径: " + AppDomain.CurrentDomain.SetupInformation.ConfigurationFile);
        }
        public void RibbonTable()
        {
            RibbonControl ribbonControl = ComponentManager.Ribbon;
            RibbonTab tab = ribbonControl.AddTab("施工图标准化", "SGTBZH", true);

            RibbonPanelSource UserPanelSource = tab.AddPanel("用户管理");
            UserPanelSource.Items.Add(RibbonButtonInfo.UserBtn);//用户按钮

            RibbonPanelSource FeaturePanelSource = tab.AddPanel("功能");
            FeaturePanelSource.Items.Add(RibbonButtonInfo.FigureBtn);//图库按钮
            FeaturePanelSource.Items.Add(RibbonButtonInfo.CollectBtn);//收藏按钮

            RibbonPanelSource ManagePanelSource = tab.AddPanel("管理");
            ManagePanelSource.Items.Add(RibbonButtonInfo.SettingsBtn);//设置按钮

            RibbonPanelSource TestPanelSource = tab.AddPanel("测试");
            TestPanelSource.Items.Add(RibbonButtonInfo.TestBtn);//测试按钮
        }

    }
}
